attrs vs data classes
indeed, dataclasses are a descendant of attrs
descendant=後継種
attrsにだけできることを列挙
define special handling of NumPy arrays for equality checks
They are the result of the Python community’s wish to have an easier way to write classes in the standard library that doesn’t carry the problems of namedtuples.
it’s a fine library and if it stops you from abusing namedtuples, they are a huge win.
「dataclassesは素晴らしいライブラリで、namedtupleの乱用を止めるならばデータクラスの勝利だ」
感想:dataclassesはnamedtupleの問題を解消したかったのか
Nevertheless, there are still reasons to prefer attrs over Data Classes.